<template>
    <div>
      <el-button type="primary" @click="handleGoHome">主界面</el-button>
      <h1 style="color: brown;">商品爬虫数据统计</h1>
      <EChartsLine />
    </div>
  </template>
  
  <script lang="ts">
  import { defineComponent } from 'vue';
  import EChartsLine from './barCharts.vue';
  import { useRouter } from "vue-router";
  
  export default defineComponent({
    components: {
      EChartsLine
    },
    setup() {
      const router = useRouter();
  
      const handleGoHome = () => {
        router.push('/home');
      };
  
      return {
        handleGoHome
      };
    }
  });
  </script>
  